package com.dm.db;

import com.alibaba.druid.pool.DruidDataSource;
import com.dm.pojo.db.Database;
import com.dm.pojo.db.Field;
import com.dm.pojo.db.Table;
import com.sun.corba.se.impl.orb.DataCollectorBase;

import java.util.List;

public interface FetchDatabase {

    /**
     * 获取数据库
     * @param druidDataSource
     * @return
     */
    List<Database> fetchDatabase(DruidDataSource druidDataSource);

    /**
     * 获取table
     * @param database
     * @return
     */
    List<Table> fetchTable(Database database);

    /**
     * 获取字段
     * @param table
     * @return
     */
    List<Field> fetchField(Database database,Table table);

}
